package com.example.aopdemo.demos.web.controller;

import com.example.aopdemo.demos.web.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @MyAspect
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }
//    @RequestMapping("/t1")
//    public void sum(){
//        System.out.println(10%0);
//
//    }
}
